/* USER CODE BEGIN Header */
/**
  ******************************************************************************
  * @file           : main.h
  * @brief          : Header for main.c file.
  *                   This file contains the common defines of the application.
  ******************************************************************************
  * @attention
  *
  * Copyright (c) 2025 STMicroelectronics.
  * All rights reserved.
  *
  * This software is licensed under terms that can be found in the LICENSE file
  * in the root directory of this software component.
  * If no LICENSE file comes with this software, it is provided AS-IS.
  *
  ******************************************************************************
  */
/* USER CODE END Header */

/* Define to prevent recursive inclusion -------------------------------------*/
#ifndef __MAIN_H
#define __MAIN_H

#ifdef __cplusplus
extern "C" {
#endif

/* Includes ------------------------------------------------------------------*/
#include "stm32f2xx_hal.h"

/* Private includes ----------------------------------------------------------*/
/* USER CODE BEGIN Includes */

/* USER CODE END Includes */

/* Exported types ------------------------------------------------------------*/
/* USER CODE BEGIN ET */

/* USER CODE END ET */

/* Exported constants --------------------------------------------------------*/
/* USER CODE BEGIN EC */

/* USER CODE END EC */

/* Exported macro ------------------------------------------------------------*/
/* USER CODE BEGIN EM */

/* USER CODE END EM */

/* Exported functions prototypes ---------------------------------------------*/
void Error_Handler(void);

/* USER CODE BEGIN EFP */

/* USER CODE END EFP */

/* Private defines -----------------------------------------------------------*/
#define VDD5V0_2_1A2A_MCU_Pin GPIO_PIN_2
#define VDD5V0_2_1A2A_MCU_GPIO_Port GPIOE
#define VDD5V0_2_1mA1A_MCU_Pin GPIO_PIN_3
#define VDD5V0_2_1mA1A_MCU_GPIO_Port GPIOE
#define SPI3_CSN1_Pin GPIO_PIN_13
#define SPI3_CSN1_GPIO_Port GPIOC
#define ARM_KEY1_Pin GPIO_PIN_0
#define ARM_KEY1_GPIO_Port GPIOF
#define ARM_KEY2_Pin GPIO_PIN_1
#define ARM_KEY2_GPIO_Port GPIOF
#define ARM_KEY3_Pin GPIO_PIN_2
#define ARM_KEY3_GPIO_Port GPIOF
#define _12V_EN_Pin GPIO_PIN_4
#define _12V_EN_GPIO_Port GPIOF
#define _5V_EN_Pin GPIO_PIN_5
#define _5V_EN_GPIO_Port GPIOF
#define RMII_MDC_Pin GPIO_PIN_1
#define RMII_MDC_GPIO_Port GPIOC
#define RMII_REF_CLK_Pin GPIO_PIN_1
#define RMII_REF_CLK_GPIO_Port GPIOA
#define RMII_MDIO_Pin GPIO_PIN_2
#define RMII_MDIO_GPIO_Port GPIOA
#define SPI1_CS_Pin GPIO_PIN_4
#define SPI1_CS_GPIO_Port GPIOA
#define RMII_CRS_DV_Pin GPIO_PIN_7
#define RMII_CRS_DV_GPIO_Port GPIOA
#define RMII_RXD0_Pin GPIO_PIN_4
#define RMII_RXD0_GPIO_Port GPIOC
#define RMII_RXD1_Pin GPIO_PIN_5
#define RMII_RXD1_GPIO_Port GPIOC
#define LED_Y_Pin GPIO_PIN_11
#define LED_Y_GPIO_Port GPIOF
#define LED_R_Pin GPIO_PIN_12
#define LED_R_GPIO_Port GPIOF
#define LED_B_Pin GPIO_PIN_13
#define LED_B_GPIO_Port GPIOF
#define VDD12V0_1_1A2A_MCU_Pin GPIO_PIN_0
#define VDD12V0_1_1A2A_MCU_GPIO_Port GPIOG
#define VDD12V0_1_1mA1A_MCU_Pin GPIO_PIN_1
#define VDD12V0_1_1mA1A_MCU_GPIO_Port GPIOG
#define RMII_TXEN_Pin GPIO_PIN_11
#define RMII_TXEN_GPIO_Port GPIOB
#define RMII_TXD0_Pin GPIO_PIN_12
#define RMII_TXD0_GPIO_Port GPIOB
#define RMII_TXD1_Pin GPIO_PIN_13
#define RMII_TXD1_GPIO_Port GPIOB
#define SW1_Pin GPIO_PIN_8
#define SW1_GPIO_Port GPIOD
#define SW2_Pin GPIO_PIN_9
#define SW2_GPIO_Port GPIOD
#define SW3_Pin GPIO_PIN_10
#define SW3_GPIO_Port GPIOD
#define SW4_Pin GPIO_PIN_11
#define SW4_GPIO_Port GPIOD
#define SW5_Pin GPIO_PIN_12
#define SW5_GPIO_Port GPIOD
#define SW6_Pin GPIO_PIN_13
#define SW6_GPIO_Port GPIOD
#define SW7_Pin GPIO_PIN_14
#define SW7_GPIO_Port GPIOD
#define SW8_Pin GPIO_PIN_15
#define SW8_GPIO_Port GPIOD
#define VDD12V0_2_1A2A_MCU_Pin GPIO_PIN_2
#define VDD12V0_2_1A2A_MCU_GPIO_Port GPIOG
#define VDD12V0_2_1mA1A_MCU_Pin GPIO_PIN_3
#define VDD12V0_2_1mA1A_MCU_GPIO_Port GPIOG
#define FPGA_RX_ARM_TX_Pin GPIO_PIN_9
#define FPGA_RX_ARM_TX_GPIO_Port GPIOA
#define FPGA_RX_ARM_RX_Pin GPIO_PIN_10
#define FPGA_RX_ARM_RX_GPIO_Port GPIOA
#define GPIO0_Pin GPIO_PIN_0
#define GPIO0_GPIO_Port GPIOD
#define POWER_FAIL_SAFEGUARD_Pin GPIO_PIN_3
#define POWER_FAIL_SAFEGUARD_GPIO_Port GPIOD
#define DAC_SCL_Pin GPIO_PIN_6
#define DAC_SCL_GPIO_Port GPIOB
#define DAC_SDA_Pin GPIO_PIN_7
#define DAC_SDA_GPIO_Port GPIOB
#define SPI2_CS_Pin GPIO_PIN_9
#define SPI2_CS_GPIO_Port GPIOB
#define VDD5V0_1_1A2A_MCU_Pin GPIO_PIN_0
#define VDD5V0_1_1A2A_MCU_GPIO_Port GPIOE
#define VDD5V0_1_1mA1A_MCU_Pin GPIO_PIN_1
#define VDD5V0_1_1mA1A_MCU_GPIO_Port GPIOE

/* USER CODE BEGIN Private defines */

/* USER CODE END Private defines */

#ifdef __cplusplus
}
#endif

#endif /* __MAIN_H */
